package com.javasm.crm.mapper.goodsmapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.javasm.crm.domin.entity.productEntity.PriceCheckVo;
import com.javasm.crm.domin.entity.productEntity.ProductVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PriceCheckVoMapper extends BaseMapper<PriceCheckVo> {
    @Select("select gi.*,gc.check_name from goods_info gi inner join goods_check gc on gi.good_checkid=gc.check_id"+" ${ew.customSqlSegment}")
    List<PriceCheckVo> queryall(Page<PriceCheckVo> pagination, @Param(Constants.WRAPPER) QueryWrapper<PriceCheckVo> exampleQueryWrapper);

}